#!/bin/bash

run_root=`pwd`

#include common functions
source libs/func.sh

#install base packages
source scripts/debian.sh

#install nginx
cd $run_root
eMsg "现在安装Nginx? [Y|n]:"
read install_nginx
if [ "$install_nginx"x = "Y"x ]; then
  source scripts/nginx.sh
fi

#install php
cd $run_root
eMsg "现在安装PHP? [Y|n]:"
read install_php
if [ "$install_php"x = "Y"x ]; then
  source scripts/php.sh
fi

#install mongo ext
cd $run_root
eMsg "现在安装mongo ext? [Y|n]:"
read install_mongo
if [ "$install_mongo"x = "Y"x ]; then
  source scripts/mongo.sh
fi

#install redis ext
cd $run_root
eMsg "现在安装redis ext? [Y|n]:"
read install_redis
if [ "$install_redis"x = "Y"x ]; then
  source scripts/redis.sh
fi



